<?php
include_once('../Framework/Base.entity.php');

/*******
This File is generated
********/

class Childtable extends Base{
                    
    public $childTableId;
    public $parentTableId;
    public $whatever;
                
    function __construct()
    {

    }
    
    public function escape($grid)
    {
    }
    
    public function validate()
    {
         if($this->parentTableId == "") // Generated
         {
            $this->AddError("parentTableId is required.");
         }
         if($this->whatever == "") // Generated
         {
            $this->AddError("whatever is required.");
         }
         if($this->ValidForeignKey("parenttable",$this->parentTableId) == false) // Generated
         {
            $this->AddError("Invalid parenttable selected.");
         }
        //ADDITIONAL VALIDATION RULES GO BELOW HERE
    }
}
?>